package com.epoint.dao;

import com.epoint.vo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


public interface UserDao extends JpaRepository<User, Integer>{

	@Query(value="select u from User u where u.userName=?1")
	User findByUserName(String string);
	
	User findByUserNameAndUserIp(String string, String ip);

	Page<User> findByUserName(String string, Pageable pageable);
}
